CDIBeanManagerJNDIDeployer{
  setStage(DeploymentStages.PRE_REAL);
}
internalDeploy{
  if (isSwitchYardDeployment(unit)) {
}
internalUndeploy{
  if (isSwitchYardDeployment(unit)) {
}
isSwitchYardDeployment{
  return (unit.getClassLoader().getResource(AbstractDeployment.SWITCHYARD_XML) != null);
}
visit{
    Context javaComp=getJavaComp(unit);
      reference.add(new StringRefAddr("id",IdFactory.getIdFromClassLoader(unit.getClassLoader())));
      javaComp.bind("BeanManager",reference);
}
error{
}
visit{
      Context javaComp=getJavaComp(unit);
      javaComp.unbind("BeanManager");
}
error{
}
getJavaComp{
  Context javaComp=null;
  InitialContext initialContext=null;
  try {
    javaComp=(Context)initialContext.lookup("java:comp");
    try {
        try {
}
